/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.FileFlowMapper;
public class FileFlow extends BaseAction
{
    @Autowired(required=false)
	private FileFlowMapper mapper;
    /**
    文件类型
    */
    
    public Map fileType() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_ft=mapper.s_ft(params);
        result.put("s_ft", s_ft);
        
        return result;
    }
    /**
    修改类型名
    */
    
    public Map typeNameUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_ft=mapper.s_ft(params);
        SQLMap s_ft_emt=s_ft.getExistfirst();
        result.put("s_ft", s_ft_emt);
        
        return result;
    }
    /**
    增加类型
    */
    
    public Map typeAdd() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        return result;
    }
    /**
    修改类型名修改
    */
    
    public Map typeNameUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int u_ft = mapper.u_ft(params);
        result.put("u_ft", u_ft);
        
        return result;
    }
    /**
    增加类型修改
    */
    
    public Map typeAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int CMID1 = mapper.CMID1(params);
        result.put("CMID1", CMID1);
        
        
        int i_file_set = mapper.i_file_set(params);
        result.put("i_file_set", i_file_set);
        
        return result;
    }
}